﻿
using System;
using System.Linq;
using System.Text;

using System.ComponentModel.DataAnnotations;
using Oliving.Edge.Model.Models;
using System.Collections.Generic;

namespace Oliving.Edge.Model.Dto.User
{
    ///<summary>
    ///
    ///</summary> 

    [Serializable]
    public class Sys_DeptDto
    {
        public Sys_DeptDto()
        {
        }


        #region Child 字段 

        public List<Sys_DeptDto> children { get; set; } = new List<Sys_DeptDto>();

        public bool hasChildren { get { return children.Count > 0; } }

        #endregion


        /// <summary> 
        /// Desc:主键ID 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        public string Id { get; set; }

        /// <summary> 
        /// Desc:父节点 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public string Pid { get; set; }

        /// <summary> 
        /// Desc:部门名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "部门名称不能为空,内存长度超出 范围")]
        public string DeptName { get; set; }

        /// <summary> 
        /// Desc:项目 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "项目不能为空,内存长度超出 范围")]
        public string ProID { get; set; }

        /// <summary> 
        /// Desc:公司 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "公司不能为空,内存长度超出 范围")]
        public string ComID { get; set; }


        #region MyRegion

        /// <summary> 
        /// Desc:创建名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public DateTime? CreateTime { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "CreateUserID不能为空,内存长度超出 范围")]
        public string CreateUserID { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "CreateUserName不能为空,内存长度超出 范围")]
        public string CreateUserName { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int? DeleteMark { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int? SortCode { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public int? Enabled { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        public DateTime? ModifyDate { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "ModifyUserId不能为空,内存长度超出 范围")]
        public string ModifyUserId { get; set; }

        /// <summary> 
        /// Desc: 
        /// Default: 
        /// Nullable:True 
        /// </summary> 
        [StringLength(4000, MinimumLength = 1, ErrorMessage = "ModifyUserName不能为空,内存长度超出 范围")]
        public string ModifyUserName { get; set; }


        #endregion

    }

}
